From da431b2a433b90a02448905421dc35d3f047d7bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Fri, 2 Mar 2018 17:22:46 +0100 Subject: [PATCH] glglyphcache: Pass lookup key to g_hash_table_lookup directly --- gsk/gl/gskglglyphcache.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gsk/gl/gskglglyphcache.c b/gsk/gl/gskglglyphcache.c index 5012eb82a2..e1d9ffd50b 100644 --- a/gsk/gl/gskglglyphcache.c +++ b/gsk/gl/gskglglyphcache.c @@ -315,14 +315,14 @@ gsk_gl_glyph_cache_lookup (GskGLGlyphCache *cache, PangoGlyph glyph, float scale) { - GlyphCacheKey lookup_key; GskGLCachedGlyph *value; - lookup_key.font = font; - lookup_key.glyph = glyph; - lookup_key.scale = (guint)(scale * 1024); - - value = g_hash_table_lookup (cache->hash_table, &lookup_key); + value = g_hash_table_lookup (cache->hash_table, + &(GlyphCacheKey) { + .font = font, + .glyph = glyph, + .scale = (guint)(scale * 1024) + }); if (value) { -- 2.30.2